home *** CD-ROM | disk | FTP | other *** search
Text File | 1994-02-28 | 924 b | 32 lines | [TEXT/ttxt] |
- // Copyright ©1993-94 Apple Computer, Inc. All rights reserved.
-
- // declare some useful constants
- constant kAppSymbol := '|littlePrints:PIEDTS| ;
- constant kBorderFormat := '|borderFormat:littlePrints:PIEDTS| ;
-
-
- // run at application install time
- // setup stuff the app may need before it is ever opened
- // or opened for this restart :-)
- InstallScript := func(partFrame)
- begin
- local myApp := partFrame.theForm ;
-
- // put my routing frame in the global routing frame
- routing.(kAppSymbol) := myApp.myRoutingFrame ;
-
- // put my format in the root so it can be found
- GetRoot().(kBorderFormat) := BuildContext(myApp.myPrintFormat);
- end;
-
-
- // run when application and/or card with app removed
- // cleanup routing stuff
- RemoveScript := func(packageFrame)
- begin
- // get rid of entry in global routing frame
- RemoveSlot(routing, kAppSymbol);
-
- // remove my print format
- RemoveSlot(GetRoot(), kBorderFormat);
- end;